package cn.wanho.mapper;

import cn.wanho.dto.ExamPaperSubject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ExamPaperSubjectMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @return insert count
     */
    int insert(@Param("paperId") Integer paperId, @Param("chooseId") Long chooseId, @Param("blanksId") Long blanksId, @Param("tfId") Long tfId, @Param("bigId") Long bigId);


    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(ExamPaperSubject record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    ExamPaperSubject selectByPrimaryKey(Integer id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ExamPaperSubject record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(ExamPaperSubject record);
}